package org.kinglone.back.user.service;



import org.kinglone.back.user.model.WeixinUser;
import org.kinglone.utlis.dao.BaseDaoImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("weixinUserService")
@Transactional(readOnly=false)
public class WeixinUserServiceImpl extends BaseDaoImpl<WeixinUser> implements WeixinUserService{

	@Override
	public WeixinUser findUserByOpenid(String openid) {
		String hql ="from WeixinUser w where w.openid=?";
		return super.getByHQL(hql, openid);
	}


}
